/*
* 操作本地存储的封装
*/

export default {
    get(key){
        // console.log(window.localStorage.getItem(key),9999)
        return JSON.parse(window.localStorage.getItem(key))
    },
    set(key,val){ 
        // console.log(JSON.stringify(val), 8888)                      
        window.localStorage.setItem(key,JSON.stringify(val))
    },
    clear(){
        window.localStorage.clear()
    },
    remove(key){
        window.localStorage.removeItem(key)
    }
}



